import Vue from 'vue'
import VueRouter from 'vue-router'
import LoginView from "@/views/LoginView.vue";
import homePageView from "@/views/HomePageView.vue";
import SignInByUserView from "@/views/SignInByUserView.vue";



Vue.use(VueRouter)

const routes = [
  //   首页
  {
    path: '/homepage',
    name: 'homepage',
    component: homePageView
  },
  //   登录
  {
    path: '/',
    name: 'login',
    component: LoginView
  },
  {
    path: '/signinbyuser',
    name: 'SignInByUser',
    component: SignInByUserView
  }

]

const router = new VueRouter({
  routes
})

export default router
